<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><%= content_for(:title) || "LDStudio" %></title>
  <link rel="shortcut icon" type="image/x-icon" href='<%= asset_path("favicon.ico") %>' />

  <%= stylesheet_link_tag "admin/styles", media: "all", "data-turbo-track": "reload" %>

</head>

<body>
<!--  Body Wrapper -->
<div class="page-wrapper" id="main-wrapper" data-layout="vertical" data-navbarbg="skin6" data-sidebartype="full"
     data-sidebar-position="fixed" data-header-position="fixed">
  <div
    class="position-relative overflow-hidden radial-gradient min-vh-100 d-flex align-items-center justify-content-center">
    <div class="d-flex align-items-center justify-content-center w-100">
      <div class="row justify-content-center w-100">
        <div class="col-md-8 col-lg-6 col-xxl-3">
          <div class="card mb-0">
            <div class="card-body">
              <a href="/" class="text-nowrap logo-img text-center d-block py-1 w-100">
                <img src="<%= asset_path("logo.png") %>" width="120" alt="">
              </a>
              <%= form_tag sessions_path, method: :post,  authenticity_token: true do %>
                <div class="mb-3">
                  <label for="username" class="form-label">用户名</label>
                  <%= text_field_tag :username, nil, placeholder: "请输入用户名", class: "form-control" %>
                </div>
                <div class="mb-4">
                  <label for="password" class="form-label">密码</label>
                  <%= password_field_tag :password, nil, placeholder: "请输入密码", class: "form-control" %>
                </div>
                <div class="d-flex align-items-center justify-content-between mb-4">
                  <div class="form-check">
                    <input class="form-check-input primary" type="checkbox" value="" id="flexCheckChecked" checked>
                    <label class="form-check-label text-dark" for="flexCheckChecked">
                      记住我
                    </label>
                  </div>
                  <a class="text-primary fw-bold" href="/forget-password">忘记密码 ?</a>
                </div>
                <%= submit_tag "登录", class: "btn btn-primary w-100 py-8 fs-4 mb-4 rounded-2" %>

                <div class="d-flex align-items-center justify-content-center">
                  <a class="text-primary fw-bold ms-2" href="/register">创建账号</a>
                </div>
              <% end %>


            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<%= javascript_include_tag '/scripts/admin/jquery/dist/jquery.min.js' %>
</body>

</html>